package cn.ssj.service.impl;

import cn.ssj.dao.SpecialtyDao;
import cn.ssj.entity.Specialty;
import cn.ssj.service.SpecialtyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
public class SpecialtyServiceImpl extends BaseServiceImpl<Specialty,Integer> implements SpecialtyService {

    @Autowired
    private SpecialtyDao dao;

    @Transactional
    public Specialty insert(Specialty entity) {
        return super.insert(entity);
    }

    @Transactional
    public Specialty update(Specialty entity) {
        return super.update(entity);
    }

    @Transactional
    public boolean delete(Integer integer) {
        return super.delete(integer);
    }
}
